package com.xiaocg.decorator;

/**
 * 具体装饰角色
 */
public class EggDecorator extends FoodDecorator{

    public EggDecorator(Integer price,String desc,FastFood fastFood) {
        super(price, desc, fastFood);
    }

    @Override
    public Integer cost() {
        return getPrice()+getFastFood().getPrice();
    }
}
